<%@page import="com.bringway.global.domain.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
<style>
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,button,article,aside,header,legend,textarea,pre,hgroup,blockquote,section,fieldset,figcaption,figure{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;}
ol,ul{list-style:none}
em,i{font-style:normal}
strong{font-weight:bold}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}
hr{border:0 #ccc solid;border-top-width:1px;clear:both;height:0}
:focus{outline:0}
ins{text-decoration:none}
del{text-decoration:line-through}
input::-ms-clear,input::-ms-reveal{display:none}
table{border-collapse:collapse;border-spacing:0}
body{color:#2d2d2d;font:14px/1.5 arial,"Hiragino Sans GB","Microsoft Yahei",sans-serif;background-color:#fff;}
body, button, input, select, textarea {font:14px/1.5 arial,"Hiragino Sans GB","Microsoft Yahei",sans-serif;}
h1,h2,h3,h4,h5,h6{font-weight:normal}
h1{font-size:30px}
h2{font-size:24px}
h3{font-size:20px}
h4{font-size:18px}
h5{font-size:16px}
h6{font-size:14px}
a{color:#2d2d2d;text-decoration:none}
form {display: block;margin-top: 0em;}
a.button, .button {display: inline-block;padding: 0;border-radius: 2px;text-align: center;}
.cl{ clear:both;}
.fl,.flleft{float: left;}
.clearfix:after {content: " ";display: block;clear: both;height: 0;font-size: 0;visibility: hidden;}
.clearfix {zoom: 1;}
.fn-clear {zoom: 1;}
.clearfix, .container_12 {zoom: 1;}
.clearfix:before, .clearfix:after, .container_12:before, .container_12:after {
content: '.';display: block;overflow: hidden;visibility: hidden;font-size: 0;line-height: 0;width: 0;height: 0;}
.clearfix:after, .container_12:after {clear: both;}
body .fn-hide {display: none;}
.fn-clear:after {visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;}


.wider_top{ width:100%; height:80px; background:url(head.png) #0c5dac no-repeat center center;}
.wider_top .head_cen{ width:1000px; margin:0 auto; height:60px; padding-top:4px;}
.wider_top .head_cen p{ text-align:right; font-weight:bold; color:#fff; padding-top:6px;}
.wider_top .head_cen p a{color:#fff;}
.wider_top .head_cen p a:hover{ color:#C60;}
#dropdown{width:106px;  position:relative; float:right;} 
#dropdown span{width:106px; height:24px; line-height:24px; padding-left:4px;
border:1px solid #a9c9e2; background:#e8f5fe; 
color:#807a62; cursor:pointer; display:block;} 
#dropdown ul{width:110px; background:#e8f5fe; margin-top:2px; border:1px solid #a9c9e2; 
position:absolute; display:none; z-index:9999999;} 
#dropdown ul li{height:24px; line-height:24px; text-indent:10px} 
#dropdown ul li a{display:block; height:24px; color:#807a62; text-decoration:none} 
#dropdown ul li a:hover{background:#c6dbfc; color:#369} 
</style>
<script src="<%=request.getContextPath()%>/framework/jquery/jquery.js"></script>
<script>
$(function(){ 
 $("#dropdown span").click(function(){
	  var ul = $("#dropdown ul"); 
	  if(ul.css("display")=="none"){ 
		ul.slideDown("fast"); 
	  }else{ 
		ul.slideUp("fast"); 
	  } 
 }); 
 
 $("#dropdown ul li a").click(function(){ 
  var txt = $(this).text(); 
  $("#dropdown span").html(txt); 
  $("#dropdown ul").hide(); 
}); 
})
</script>
<jsp:include page="/global/common.jsp"  flush="true"/>
<script type="text/javascript" src="Main.js"></script>
<%
	User user = (User) request.getSession().getAttribute("currentUser");
	String gyh="",username="",roleId="",roleName="";
	if(null == user){
		response.sendRedirect(request.getContextPath()+"/index.jsp");
	}else{
		gyh = user.getGyh();
		username = user.getUsername();
		roleId = user.getRoleId();
		roleName = user.getRoleName();
	}

%>
<script type="text/javascript">
	var gyh = '<%=gyh%>';
	var username = '<%=username%>';
	var roleId = '<%=roleId%>';
	var roleName = '<%=roleName%>';
	Ext.onReady(function(){
		var panel = new Ext.Panel({
			layout : 'fit',
			border : false,
			renderTo : Ext.getBody(),
			items : [new pages.main.Main()]
		});
		panel.show();
	})
</script>
</head>

<body>
     <script>
        function test(){
            //alert("此处仅供测试用例！");
            win2=open("win2.html","secondWindow",
   "scrollbars=yes,width=250, height=400")

        }
     </script>
<div class="wider_top">
   <div class="head_cen">
      <p><span>账户：撒旦法</span></p> 
      <p>
        <div id="dropdown"> 
          <span>请选择功能</span> 
          <ul> 
            <li><a href="#" onclick="test();">我的账户</a></li> 
            <li><a href="#" onclick="test();">购买中心</a></li> 
            <li><a href="#" onclick="test();">帮助中心</a></li> 
            <li><a href="#" onclick="test();">退出</a></li> 
          </ul> 
        </div>
      </p>
   </div>
</div>
<div id="mainPanel" style="clear:both;border:0px solid;">
</div>
</body>
</html>
